package GoFushan;

public class Person extends Actor{

	public String name;
	public int speed;
	private Vehice vehice;
	
	public Person(String name) {
		this.name = name;
		this.speed = 2;
		this.vehice = new Vehice("");
	}

	@Override
	public int go(City city) {
		int days = 0;
		int distance = city.getDistance();
		while(distance > 0) {
			distance -= (speed + getVehice().speedUp()); 
			days++;
		}
		return days;
	}
	
	public Vehice getVehice() {
		return this.vehice.getVehicle();
	}

}
